import Vue from "vue"
import VueRouter from "vue-router"
import formTable from "../views/formTable"
// import chartDemo from "../views/chartDemo"

let chartDemo = () => import("../views/chartDemo.vue")
let loadshDemo = () => import("../views/loadshDemo/loadshDemo.vue")
let accidentPreivewReport = () => import("../views/loadshDemo/accidentPreivewReport.vue")

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    name: "formTable",
    component: formTable,
  },
  {
    path: "/chartDemo",
    name: "",
    component: chartDemo,
  },
  {
    path: "/loadshDemo",
    name: "loadshDemo",
    component: loadshDemo,
  },
  {
    path: "/accidentPreivewReport",
    name: "accidentPreivewReport",
    component: accidentPreivewReport,
  },
]

const router = new VueRouter({
  mode: "history",
  base: "/",
  // base: "/",
  routes,
})

export default router
